package com.itheima.web.manager;

import com.itheima.service.db.AnalysisByDayService;
import com.itheima.vo.AnalysisSummaryVo;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;

/**
 * @author zsk
 * @create 2022-03-26-19:41
 */
@Component
public class AnalysisManager {

    @DubboReference
    private AnalysisByDayService analysisByDayServicel;

    //概要统计信息
    public ResponseEntity summary() {

        //调用rpc查询
        AnalysisSummaryVo vo = analysisByDayServicel.findAnalysisSummaryVo();

        //返回结果
        return ResponseEntity.ok(vo);

    }
}
